package com.liuhaoqi.raletiveblog.mapper;

import com.liuhaoqi.raletiveblog.entity.Category;
import com.liuhaoqi.raletiveblog.result.business.PageResult.CategoryPageResult;

import java.util.List;

public interface CategoryMapper {
    int deleteCategoryByCategoryId(Long categoryId);
    List<CategoryPageResult> getAdminCategoryList(int start,int end,int pagesize);
    int updateCategoryByCategoryId(Category category);
    int insertCategory(Category category);
    Category getCategoryByCategoryName(String categoryname);
    List<Category> getCategoryList();
    int deleteByPrimaryKey(Long categoryid);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long categoryid);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
}